﻿<!DOCTYPE html>
<!-- 新增/修改资讯信息 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>服务区-管理系统</title>
<link rel="shortcut icon" href="//www.fuwuqu.com/ifs/netflag/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/CMS/css/DefaultSkin.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/load.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/control.css?v=20180830100701989" />
<!-- page.css拆分 -->
<link rel="stylesheet" type="text/css" href="/CMS/css/list.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/anim.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/page.css?v=1.0" />
<link rel="stylesheet" type="text/css" href="/CMS/css/comm.css?v=20180830100701989" />

<link rel="stylesheet" type="text/css" href="/CMS/css/select2/select2.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/zTreeStyle/zTreeStyle.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/core.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/file/uploadify/uploadify.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/treeview/jquery.treeview.css?v=20180830100701989" />

<link rel="stylesheet" type="text/css" href="/CMS/css/multi-select.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/bsgrid/bsgrid.all.min.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/bsgrid/bsgrid.all.min.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jeasy-ui/easyui.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/poshytip/tip-darkgray/tip-darkgray.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/addinfo.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/prettyPhoto.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jquery-ui-1.10.4.custom.min.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jquery.editable-select.min.css?v=20180830100701989" />

<script type="text/javascript" src="/CMS/js/jquery-1.11.2.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/browser.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/jquery-orso.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/jquery-ajax.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/securityProtect.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/jquery-ajax-response-handler.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/public-obj.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/bind.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/controls.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/slide.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/switch.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/initial.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/printhtml.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/listBox.js?v=20180830100702046"></script>

<script type="text/javascript" src="/CMS/js/plugins/My97DatePicker/WdatePicker.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/file/uploadify/jquery.uploadify.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/layer/layer.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/select2/select2.full.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/select2/i18n/zh-CN.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/treeview/jquery.treeview.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/form/jquery.form.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/ztree/jquery.ztree.core-3.5.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/ztree/jquery.ztree.excheck-3.5.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/constant.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/common.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/bmsAjax.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/validata.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/jquery.validate.revise.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/localization/messages_zh.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/regValidate.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/popup_layer.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery_magnifier.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.multi-select.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.quicksearch.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/jquery.easyui.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.prettyPhoto.js?v=20180830100702046"></script>

<script type="text/javascript" src="/CMS/js/plugins/bootstrap-paginator/js/bootstrap-paginator.min.js?v=20180830100702046"></script>

<script type="text/javascript" src="/CMS/js/plugins/bsgrid/grid.zh-CN.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/bsgrid/bsgrid.all.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/bsgrid/grid.extend.min.js?v=20180830100702046"></script>
<script type="text/javascript" charset="UTF-8" src="/CMS/js/plugins/poshytip/jquery.poshytip.js?v=20180830100702046"></script>

<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery-ui-1.10.4.custom.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/joinUs/AddListBox.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.editable-select.min.js?v=20180830100702046"></script>

<!-- echarts -->
<script type="text/javascript" src="/CMS/js/plugins/echarts/dist/echarts.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/bar.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/line.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/pie.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/funnel.js?v=20180830100702046"></script>

<!-- bootstrap -->
<link rel="stylesheet" type="text/css" href="/CMS/css/bootstrap/bootstrap.css?v=20180830100701989" />


<!--
<link th:if="${'$'}!#strings.isEmpty(isReport)}" rel="stylesheet" type="text/css" bms:href="@{/css/fonts/glyphicons-halflings-regular.ttf}" />
<link th:if="${'$'}!#strings.isEmpty(isReport)}" rel="stylesheet" type="text/css" bms:href="@{/css/fonts/glyphicons-halflings-regular.woff}" />
-->







<!-- task -->
<link rel="stylesheet" type="text/css" href="/CMS/css/task/commTask.css?v=20180830100701989" />
<script type="text/javascript" src="/CMS/js/task/commTask.js?v=20180830100702046"></script>

<script>
	document.isDebug = false;
	document.domain = location.hostname;

	//定义右下角任务列表
	var _options = {};
	_options.HOST = '/CMS/';
	_options.MAX_COUNT = 30;
	new CommTask(_options);

	//获取验证码
	var _SECURITY_PROTECT_VERIFY_URL = '/CMS/securityProtect/verify.ht';
	//校验验证码
	var _SECURITY_PROTECT_CHECK_VERIFY_URL = '/CMS/securityProtect/checkverify.ht';
	//检测
	var _SECURITY_PROTECT_CHECK_URL = '/CMS/securityProtect/check.ht';

	var isIE = (function () {
		var ua = window.navigator.userAgent.toLowerCase();
		if (ua.indexOf("msie") > 0 || ua.indexOf("trident") > 0 ) {
	    	return true;
		}else {
	    	return false;
		}
	}());

	 /*<![CDATA[*/
         function findDBInfo(){
 	    var url = '/CMS/pasMessage/list.ht';
 	   	addTabs(url,'待办任务');
     }

		function showTask(){
			var url = '/CMS/task/list.ht';
 	   	addTabs(url,'任务列表');
		}

		$(function(){
		function menuControl(){
			var _options=this.options={
				openCls:"active_subopen",//展开子列表后菜单盒子的class名
				disableCls:"active_subdisable",//展开子列表后菜单盒子的class名
                   menuWarpCls:"content",
                   menuSmall:"menu-small"
			};
			this.menuBox=$(".grid-s5m0");
               this.menuWarp=$("#"+_options.menuWarpCls);
               this.menuSmallBtn=this.menuBox.find(".menu-small-btn");
			this.menuBoxList=$(".menu-box-list .dd-item");
			this.menuIndex=$(".menu-box-list .dd-index");
			this.submenuOpenBtn=this.menuBox.find(".submenu-open");
			this.subMenuBox=this.menuBox.find(".dd-inner");
			this._userState=false;
               this._hide();
               this._menuBig();
               this._disable();
			this._bind();
		}
		menuControl.prototype={
			_resize:function(){
                   var _this=this,
                       win=$(window),
                       count=5;
                   _this._timeout && clearTimeout(_this._timeout);
				function wresize(){
                       win.resize();
                       count--;
                       if(count>0){
                           _this._timeout && clearTimeout(_this._timeout);
                           _this._timeout=setTimeout(function(){
                               wresize();
                           },100);
                       }
                   }
                   wresize();
			},
			/**
			*隐藏菜单
			*/
			_hide:function(){
				var _this=this,
				_tempOption=this.options;

				_this._state=false;

                   _this.menuBox.removeClass(_tempOption.disableCls);
				_this.menuBox.removeClass(_tempOption.openCls);
				_this._resize();
			},

               _disable:function(){
				var _this=this
				_tempOption=this.options;

				_this.menuBox.addClass(_tempOption.disableCls);
                   _this.menuBox.removeClass(_tempOption.openCls);
                   _this._resize();
               },
			/**
			*打开菜单
			*/
			_open:function(){
				var _this=this,
				_tempOption=this.options;

				_this._state=true;
                   _this.menuBox.removeClass(_tempOption.disableCls);
				_this.menuBox.addClass(_tempOption.openCls);
				_this._resize();
			},

               /**
                * 最小化菜单
                * @private
                */
               _menuSmall:function(){
                   var _this=this,
				_tempOption=this.options;

                   _this._menuState=false;

                   _this.menuWarp.addClass(_tempOption.menuSmall);
                   _this._resize();
               },

               /**
                * 最大化菜单
                * @private
                */
               _menuBig:function(){
                   var _this=this,
				_tempOption=this.options;

                   _this._menuState=true;

                   _this.menuWarp.removeClass(_tempOption.menuSmall);
                   _this._resize();
               },
			_bind:function(){
				var _this=this;


                   _this.menuSmallBtn.bind("click",function(){
					if(_this._menuState){
                           _this._userState=false;
						_this._menuSmall();
					}else{
                           _this._userState=true;
						_this._menuBig();
					}
				});

				_this.submenuOpenBtn.bind("click",function(){
					if(_this._state){
						_this._hide();
					}else{
						_this._open();
					}
				});
                   _this.menuIndex.bind("click",function(){
                       _this._disable();
                   });
				_this.menuBoxList.bind("click",function(){
                       if(!_this._userState){
                           _this._menuSmall();
                       }
					_this._open();
				});
			}
		};

		new menuControl();

		function SetScroll() {
		    this._bind();
		}

		SetScroll.prototype = {
		    /**
		     * 添加事件方法
		     * @param {function} fn 事件调用的方法
		     * @param {Node} node 事件需要操作的节点
		     */
		    addEvent: function (fn, node) {
		        if (fn && $.isFunction(fn)) {
		            this.eventList = this.eventList || [];
		            this.eventList.push({ fn: fn, node: node });
		        }
		    },

		    /**
		     * 事件触发时执行的事件
		     */
		    triggerEvt: function () {
		        var _this = this,
		            bodyscrollTop = _this._getScrollNode();

		        _this.eventList && $.each(_this.eventList, function () {
		            this.fn(bodyscrollTop.scrollTop, this.node);
		        });
		    },
		    /**
		     * 获取支持scrollTop的元素
		     * @protected
		     * @returns {Node} 返回支持Dom节点scrollTop的元素
		     */
		    _getScrollNode: function () {
		        return document.documentElement && document.documentElement.scrollTop ? document.documentElement : document.body;
		    },
		    /**
		     * 绑定事件
		     * @protected
		     */
		    _bind: function () {
		        var _this = this;
		        $(window).bind("scroll", function () {
		            _this.triggerEvt();
		        });
		    }
		};

		var scroll=new SetScroll(),//滚动条对象
			menuBox=$(".menu-box"),
			ddinner=$(".dd-inner");//子菜单列表盒子


			scroll.addEvent(function(scrollTop,scrolla){
				var top=50-scrollTop;
				if(top<=0){
					top=0;
				}
				scrolla.css({top:top});
				ddinner.css({top:top});
			},$(".menu-box"));

		$("img").error(function(){//图片加载错误
			$(this).attr("src", '/CMS/img/u146.png?');//设置默认图片
		});
		var imgUrl = '';

		$("#menu_tree").bind('click',function(event){
			if(event.target.className.indexOf("hitarea")>-1){
				if(YW.newobj){
					if(YW.newobj.leftheigth){
						YW.newobj.leftheigth.setSize();
					}
				}
			}
		})
		$(".item-hd,.dd-nav").bind('click',function(){
			if(YW.newobj){
				if(YW.newobj.leftheigth){
					YW.newobj.leftheigth.setSize();
				}
			}
		})
	});

	function clearList(){
		$(".icip_pull_item").each(function(){
			$(this).removeClass("icip_button_c4");
		});
	}

	$(function(){
		$(".icip_pull_item").click(function(){
 			clearList();
     		var pageSize=$(this).attr("name");
     		$(this).addClass("icip_button_c4");
     		$("#pageSize").val(pageSize);
     		go($("#pagenumber").html());
		});

		//展开更多
		(function(){
			$(".icip_btn_more").delegate(".icip_more_show","mouseover",function(){
				$(this).parents('.icip_btn_more').addClass("icip_active");
			});
			$(".icip_btn_more").on("mouseout",function(evt){
				if(!$(this).find(evt.relatedTarget)[0]){
					$(this).removeClass("icip_active");
				}
			});

		})();
	});
	/*]]>*/
</script>
</head>
<link rel="stylesheet" type="text/css" href="/CMS/css/pubInfo/pubInfo.css?v=20180830100701989" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/wangEditor/wangEditor.css?v=20180830100701989" />
<script type="text/javascript" src="/CMS/js/plugins/wangEditor/wangEditor.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/file/plupload/plupload.full.min.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/file/plupload/i18n/zh_CN.js?v=20180830100702046"></script>
<script type="text/javascript" src="/CMS/js/plugins/file/qiniu.js?v=20180830100702046"></script>
<body class="bgcolor-body">
	<div>
	<input type="hidden" id="userId" value="EID2017121200009358" />
	<div class="icip_skin_box1">
		<div>
	<!-- 导航js-->
	<!-- 从commonTemplate.html中移过来的,防止没有导航的页面加载了此JS文件 -->
	<script type="text/javascript" src="/CMS/js/plugins/breadCrumbNavigation/navigation.js?v=20180830100702046"></script>
	<div class="cur-position"></div>
</div>
		<div class="icip_content_box1">
			<div>
<div class="icip_title_box">
	<div class="left">
		<span class="icip_title_text">新增资讯信息</span>

	</div>
	<div class="left">
		<span class="icip_button" onclick="returnBack();">返回上级</span>
	</div>
        <div class="right">
         <span class="refresh" style="margin-right: 60px;">
   <a class="btn btn-default" href="/CMS/information/showPubInfo.ht">刷新</a>
</span>
     </div>
</div>
</div>
			<div class="cont-box">
				<div class="list-table-cont">
					<div class="table6">
						<form id="frm" method="post" action="/CMS/information/savePubInfo.ht">
							<input type="hidden" name="web_token" value="74850a06-168d-472b-8227-7bbf4156e396" />
							<input type="hidden" name="messageNo" value="" />
							<table>
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>信息类型：</span>
											</div>
											<div class="td2">
												<div class="control-css3select">
													<select id="infoType" class="radius3 " name="infoType">
                                                        %for key,value in INFORMATION_INFOTYPE.items():
														<option value="${key if key else ''}">${value.encode('utf-8') if value else ''}</option>
                                                        %endfor
                                                        <!--
														<option value="2">员工消息</option>
                                                        -->
													</select>
												</div>
											</div>
										</div>

									</td>
								</tr>
								<tr id="companyTr">
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>发布公司：</span>
											</div>
											<div class="td2">
												<div class="control-css3select css3select-icon-hide">
													<select id="pcid" class="radius3 " name="pcid" style="width: 240px">
													</select>
												</div>
											</div>
										</div>

									</td>
								</tr>
								<tr id="company_objTr">
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>发布对象：</span>
											</div>
											<div class="td2">
												<label>
													<span class="JsW control-radio" data-control-type="radio">
														<input type="radio" value="0" name="eMessageObject" />
													</span>
													物业人员
												</label>
												<label>
													<span class="JsW control-radio" data-control-type="radio">
														<input type="radio" value="1" name="eMessageObject" />
													</span>
													业主
												</label>
												<label>
													<span class="JsW control-radio" data-control-type="radio">
														<input type="radio" value="2" name="eMessageObject" />
													</span>
													所有人
												</label>
											</div>
										</div>

									</td>
								</tr>
								<tr id="communityTr" style="display: none;">
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>发布小区：</span>
											</div>
											<div class="td2">
												<div class="control-css3select css3select-icon-hide">
													<select id="cid" class="radius3 " name="cid">
													</select>
												</div>
											</div>
										</div>

									</td>
								</tr>
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>置顶：</span>
											</div>
											<div class="td2">
												<div class="control-css3select">
													<select id="bz3" class="radius3 " name="bz3">
														<option value="0">置顶</option>
                                                        <option value="1">不置顶</option>
													</select>
												</div>
											</div>
										</div>

									</td>
								</tr>
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>标题：</span>
											</div>
											<div class="td2">
												<span>
													<input type="text" class="radius3 input" maxlength="60" id="title" name="title" placeholder="请输入标题" value="" />
												</span>
											</div>
										</div>
									</td>
								</tr>
            					<tr>
            						<td>
            							<div class="left">
            								<div class="td1">
            									<span>标题图片：</span>
            								</div>
            								<div class="td2">
            									<!--
            									<div data-bind="{'evt':'mouseover','fun':'layer.tips(\'点击上传图片\', \'#uploadifyButton2-button\')'}">
            										<div>
            											<input type="hidden" name="certificate" id="certificate" th:value="${'$'}{result} == null ? '' : ${'$'}{result.certificate}" />
            										</div>
            										<div id="fileQueue4" class="fileUpload">
            											<input type="file" name="upFile" id="uploadifyButton4" style="height: 84px; width: 111px;" />
            										</div>
            										<input type="hidden" value="" id="tempFileName3" name="tempFileName3" />
            									</div>
            									 -->

            									<div>
            										<div id="uploadifyButton4"></div>
            										<input type="hidden" name="certificate" id="certificate" />
            										<input type="hidden" id="tempFileName3" name="tempFileName3" />
            									</div>
            								</div>
            							</div>
            						</td>
            					</tr>

								<!--<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>发布产品：</span>
											</div>
											<div class="td2">
												<div class="control-css3select">
													<select id="publishProduct" class="radius3 " name="publishProduct">
													</select>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>有效时间：</span>
											</div>
											<div class="td2">
												<span>
													<input type="text" name="validdate" id="validdate" readonly="readonly" class="Wdate" size="13" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;,minDate:&#39;%y-%M-%d&#39;,maxDate:&#39;#F{$dp.$D(\&#39;invalidDate\&#39;)}&#39;})" value="" />
													至
													<input type="text" name="invalidDate" id="invalidDate" readonly="readonly" class="Wdate" size="13" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;,minDate:&#39;#F{$dp.$D(\&#39;validdate\&#39;)||(\&#39;%y-%M-%d\&#39;)}&#39;})" value="" />
												</span>
											</div>
										</div>
									</td>
								</tr>-->
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>信息状态：</span>
											</div>
											<div class="td2">
												<div class="control-css3select">
													<select id="status" class="radius3 " name="status">
														<option value="01">正常</option>
														<option value="02">暂停</option>
														<option value="03">失效</option>
													</select>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="left">
											<div class="td1">
												<span class="require">*</span>
												<span>编辑内容：</span>
											</div>
											<div class="td2" style="float: left; margin-left: 115px">
												<div id="editor-container" class="container" style="width: 770px;">
													<div style="height: 350px;" id="editor-trigger"></div>
													<input type="hidden" name="content" id="content" />
												</div>
											</div>
										</div>
									</td>
								</tr>
							</table>
							<div class="redbutton control-button JsW" data-control-type="button" data-control-config="{&#39;buttonCls&#39;:&#39;button&#39;}">
								<span>
									<input value="确认" type="button" class="radius5 button ks-pop-close1" onclick="toSubmit()" />
								</span>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
	<div>
		<div id="_proccesBar" class="JsW keypayment" data-position-type="fixed" data-position-config="{}" data-widget-type="popup" data-widget-config="{&#39;contentId&#39;:true,&#39;contentCls&#39;:&#39;ks-load&#39;}" style="display: none;">
			<div class="JsW load-box" id="ks-load" data-size-type="widescreen">
				<div class="JsW bg alpha30"></div>
				<div class="JsW load-pop-box" data-align-type="align" data-align-config="{&#39;lframe&#39;:&#39;ks-load&#39;}">
					<img class="rotate" src="/CMS/img/loading.png" />
				</div>
			</div>
			<div class="ks-pop-nav"></div>
		</div>

		<div id="_proccesBar_no_close" class="JsW keypayment" data-position-type="fixed" data-position-config="{}" data-widget-type="popup" data-widget-config="{&#39;contentId&#39;:true,&#39;contentCls&#39;:&#39;ks-load&#39;,&#39;keyCode&#39;:[]}" style="display: none;">
			<div class="JsW load-box" id="ks-load" data-size-type="widescreen">
				<div class="JsW bg alpha30"></div>
				<div class="JsW load-pop-box" data-align-type="align" data-align-config="{&#39;lframe&#39;:&#39;ks-load&#39;}">
					<img class="rotate" src="/CMS/img/loading.png" />
				</div>
			</div>
			<div class="ks-pop-nav"></div>
		</div>

		<div class="modal-box" id="ks-pop-box-pwd" align="center">
			<div class="JsW bg alpha60" data-position-type="fixed" data-size-type="widescreen"></div>
			<div class="pop-box JsW" data-align-type="align" data-align-config="{&#39;vertical&#39;:&#39;middle&#39;,&#39;offset&#39;:[120,0]}">
				<form method="post" id="__changePwd" action="/CMS/changePwd.ht">
					<div class="pop-box-hd">
						修改登录密码 <i class="ks-pop-close2" onclick="closeDialog(&#39;ks-pop-box-pwd&#39;)" style="background: transparent;">X</i>
					</div>
					<div class="pop-box-bd">
						<table>
							<tr>
								<td align="right">
									<div>
										<span class="require">*</span>
										<span>原密码：</span>
									</div>
								</td>
								<td>
									<div>
										<span>
											<input type="password" class="radius3 input" id="oldPassword" name="oldPassword" placeholder="请输入旧密码" />
										</span>
									</div>
								</td>
							</tr>
							<tr>
								<td align="right">
									<div>
										<span class="require">*</span>
										<span>新密码：</span>
									</div>
								</td>
								<td>
									<div>
										<span>
											<input type="password" class="radius3 input" id="newPassword" maxlength="20" name="newPassword" placeholder="请输入新密码" />
										</span>
									</div>
								</td>
							</tr>
							<tr>
								<td align="right">
									<div>
										<span class="require">*</span>
										<span>确认密码：</span>
									</div>
								</td>
								<td>
									<div>
										<span>
											<input type="password" class="radius3 input" maxlength="20" id="checkPassword" name="checkPassword" placeholder="再次输入新密码" />
										</span>
									</div>
								</td>
							</tr>
						</table>
					</div>
					<div class="pop-box-ft">
						<div class="redbutton control-button JsW">
							<span>
								<input type="button" value="确定" onclick="changePwd(&#39;ks-pop-box-pwd&#39;,&#39;__changePwd&#39;)" class="radius5 button" />
							</span>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>

	<script>
		var datax = null;
		var checkObjectx = '2'==3?"2":"0";
		var pubInfox={'cName':null,'cid':null,'companyName':null,'content':null,'dir':null,'eMessageObject':null,'infoType':null,'invalidDate':null,'list':[],'messageNo':null,'msgstatus':null,'msgtypes':null,'pcid':null,'publishProduct':null,'publishTime':null,'replyCount':null,'status':null,'title':null,'updateTime':null,'validdate':null};
		var workImgUrlx= '/';

		var E = window.wangEditor;
		var editor = new E('#editor-trigger');
		editor.customConfig.qiniu = true;
		//限制一次最多上传 1 张图片
		editor.customConfig.uploadImgMaxLength = 1;
		//将图片大小限制为 3M
		editor.customConfig.uploadImgMaxSize = 3 * 1024 * 1024;
		//自定义fileName
		editor.customConfig.uploadFileName = 'upload';
		editor.create();

		uploadInit();

		/*<![CDATA[*/
		function uploadInit() {
			var btnId = editor.imgMenuId;
		    var containerId = editor.toolbarElemId;
		    var textElemId = editor.textElemId;
		    var Q3 = new QiniuJsSDK();
		   // 创建上传对象
			var uploader = Q3.uploader({
				runtimes : 'html5,flash,html4',
				// 上传模式,依次退化
				browse_button : btnId,
				// 上传选择的点选按钮，**必需**
				uptoken_url : '/CMS/fileQiniu/getUptoken.ht',
				// Ajax请求upToken的Url，**强烈建议设置**（服务端提供）
				// uptoken : '<Your upload token>',
				// 若未指定uptoken_url,则必须指定 uptoken ,uptoken由其他程序生成
				unique_names : false,
				// 默认 false，key为文件名。若开启该选项，SDK会为每个文件自动生成key（文件名）
				save_key : false,
				// 默认 false。若在服务端生成uptoken的上传策略中指定了 `sava_key`，则开启，SDK在前端将不对key进行任何处理
				domain : workImgUrlx,
				// bucket 域名，下载资源时用到，**必需**
				container : containerId,
				// 上传区域DOM ID，默认是browser_button的父元素，
				max_file_size : '10mb',
				// 最大文件体积限制
				flash_swf_url : '/CMS/js/plugins/file/plupload/Moxie.swf',
				// 引入flash,相对路径
				filters : {
					mime_types : [
					// 只允许上传图片文件 （注意，extensions中，逗号后面不要加空格）
					{
						title : "图片文件",
						extensions : "jpg,gif,png,bmp"
					} ]
				},
				max_retries : 3,
				// 上传失败最大重试次数
				dragdrop : true,
				// 开启可拖曳上传
				drop_element : 'editor-container',
				// 拖曳上传区域元素的ID，拖曳文件或文件夹后可触发上传
				chunk_size : '4mb',
				// 分块上传时，每片的体积
				auto_start : true,
				// 选择文件后自动上传，若关闭需要自己绑定事件触发上传
				multi_selection : false,
				// 每次只能选择一个文件
				init : {
					'FilesAdded' : function(up, files) {
						plupload.each(files, function(file) {
							// 文件添加进队列后,处理相关的事情
							printLog('on FilesAdded');
						});
					},
					'BeforeUpload' : function(up, file) {
						// 每个文件上传前,处理相关的事情
						printLog('on BeforeUpload');
					},
					'UploadProgress' : function(up, file) {
						// 显示进度条
						//editor.showUploadProgress(file.percent);
					},
					'FileUploaded' : function(up, file, info) {
						// 每个文件上传成功后,处理相关的事情
						// 其中 info 是文件上传成功后，服务端返回的json，形式如
						// {
						// "hash": "Fh8xVqod2MQ1mocfI4S4KpRL6D98",
						// "key": "gogopher.jpg"
						// }
						printLog(info);
						// 参考http://developer.qiniu.com/docs/v6/api/overview/up/response/simple-response.html

						var domain = up.getOption('domain');
						var res = $.parseJSON(info);
						var sourceLink = domain + res.key; // 获取上传成功后的文件的Url
						//printLog(sourceLink);
						// 插入图片到editor
						editor.cmd.do('insertHtml', '<img src="' + sourceLink + '" style="max-width:100%;"/>')
					},
					'Error' : function(up, err, errTip) {
						// 上传出错时,处理相关的事情
						printLog('on Error');
					},
					'UploadComplete' : function() {
						// 队列文件处理完毕后,处理相关的事情
						//printLog('on UploadComplete');
						// 隐藏进度条
						//editor.hideUploadProgress();
					},
					// Key 函数如果有需要自行配置，无特殊需要请注释
					'Key' : function(up, file) {
						// 若想在前端对每个文件的key进行个性化处理，可以配置该函数
						// 该配置必须要在 unique_names: false , save_key: false 时才生效
						var userId = $("#userId").val();
						var uid = userId.substring(userId.length - 8, userId.length); // 员工编号后8位
						var ts = (new Date()).valueOf();
						ts = Math.round(new Date().getTime() / 1000).toString(); // 十位时间戳
						var key = "image/information/" + uid + "_" + ts + ".png";
						// do something with key here
						return key;
					}
				}
			});
			// domain 为七牛空间（bucket)对应的域名，选择某个空间后，可通过"空间设置->基本设置->域名设置"查看获取
			// uploader 为一个plupload对象，继承了所有plupload的方法，参考http://plupload.com/docs
		 }
		/*]]>*/
	</script>
	<script type="text/javascript" src="/CMS/js/pubInfo/pubInfo.js?v=20180830100702046"></script>
	<script type="text/javascript">
	/* <![CDATA[ */
		var __html5_upload_div_id_count = 0;
		$.fn.extend({
			html5Upload : function(option) {
				var formId = 'html5_upload_' + __html5_upload_div_id_count++;
				var _this = $(this);
				_this.html5_option = option;
				_this.prop('html5_upload_form_id', formId);

				var _default = {
					css : {
						width : '180px',
						height : '140px',
						border : '1px solid #ccc',
						padding : '2px 2px 2px'
					},
					showFilePath : true, // 是否在图片下方显示文件地址
					fileTypeExts : [],
					onSelect : function(file) {
						// 选择文件后执行。参数：选择的文件对象
					},
					onUploadSuccess : function(data) {
						// 上传成功后执行
					},
					onUploadError : function() {
						// 上传失败后执行
					},
					onUploadComplete : function() {
						// 上传完成后执行
					}
				};

				option = $.extend(_default, option);

				// 1 在BODY中加入一个隐藏的div.
				var _$hideDiv = $('<div></div>');
				_$hideDiv.hide();
				$('body').append(_$hideDiv);

				// 2 这个div中加入一个form
				var _$form = $("<form></form");
				_$form.attr('id', formId);
				_$form.attr('action', option.url);
				_$form.attr('method', 'post');
				_$form.attr('enctype', 'multipart/form-data');
				_$hideDiv.append(_$form);

				// 4 获取上传按钮，将按钮移到隐藏的div中的form里
				// var _$fileBtn = _this.find('input[type="file"]');
				var _$fileBtn = $("<input type='file' name='uploadfile' />");
				_$form.append(_$fileBtn);

				// 5.应用样式
				_this.empty();
				_this.css(option.css);
				// 展示文件图片
				var _fileImg = $("<div style='width:100%;height:100%;'></div>");
				_this.append(_fileImg);
				// 文件名称
				var _fileName = $("<div></div>");
				_this.append(_fileName);

				// 检测有没有设置默认图片
				var defaultSrc = _this.attr('src') || option.src;
				if (defaultSrc) {
					_fillInFile(getUploadedImg(defaultSrc));
				} else {
					_fillInFile(getPrepairImg());
				}

				// 6 点击显示DIV时，触发上传按钮的点击事件
				_this.unbind('click');
				_this.bind('click', function() {
					if (_this.STATUS == 'RUNNING') {
						if (document.isDebug) {
							console.log('正在上传中');
						}
						return false;
					}
					_$fileBtn.trigger('click');
				});

				// 7 文件选择成功后,触发隐藏div中的form事件
				_$fileBtn.bind('change', function() {
					_this.STATUS = 'RUNNING';

					var filename = _$fileBtn.val();

					var onSelectFuncResult;
					if (filename) {
						// 检测文件名
						if (!_checkFileExts(filename)) {
							_reset();
							_this.STATUS = 'COMPLETE';
							return false;
						}

						var file = _$fileBtn.val();
						onSelectFuncResult = option.onSelect(file);
					} else {
						_reset();
						_this.STATUS = 'COMPLETE';
						return false;
					}

					// 如果 onSelect返回false,则不再继续
					if (onSelectFuncResult != undefined && !onSelectFuncResult) {
						// 重置file输入框
						_reset();
						_this.STATUS = 'COMPLETE';
						return false;
					}

					_fillInFile(getUploadingImg());

					// 选择完成后，上传文件
					$.submit(_$form, {
						dataType : 'json',
						success : function(data) {
							// 返显
							_fillInResult(data);

							// 回调
							var func;
							if (option.onUploadSuccess) {
								func = option.onUploadSuccess;
								func(data, filename.substring(filename.lastIndexOf("\\") + 1));
							}
						},
						error : function() {
							// 上传失败，重新等待上传
							_fillInFile(getPrepairImg());

							var func;
							if (option.onUploadError) {
								func = option.onUploadError;
								func();
							}
						},
						complete : function() {
							// 重置file输入框
							_reset();
							_this.STATUS = 'COMPLETE';

							var func;
							if (option.onUploadComplete) {
								func = option.onUploadComplete;
								func();
							}
						}
					});
				});

				/**
				 * 清空上传文件按钮的内容,防止两次上传同一文件时，无法监听到文件改变
				 */
				function _reset() {
					_$fileBtn.val('');
				}

				/**
				 * 填充图片到div中
				 */
				function _fillInFile(url) {
					if (url) {
						if(url.indexOf('?') == -1 ){
							url += '?v=' + new Date().getTime();
						}else{
							url += '&v=' + new Date().getTime();
						}
						_fileImg.empty();
						var img = $('<img style="width:100%;height:100%;"/>');
						img.attr('src', url);
						_fileImg.append(img);
					}
				}

				function _checkFileExts(filename) {
					var fileTypeExts = option.fileTypeExts;
					if (fileTypeExts && fileTypeExts.length > 0) {
						for ( var i in fileTypeExts) {
							var fileTypeExt = $.trim(fileTypeExts[i]);
							var reg = new RegExp(fileTypeExt + "$");
							if (reg.test(filename)) {
								return true;
							}
						}
						_alert("允许上传文件类型:" + _arrarToString(fileTypeExts));
						return false;
					} else {
						return true;
					}
				}

				/**
				 * 将上传结果返显到DIV中
				 */
				function _fillInResult(data) {
					if (data && data.result) {
						var pic = data.result;
						if (pic) {
							var url = getUploadedImg(pic);
							_fillInFile(url);
						}
					}
				}

				/**
				 * 返回等待上传的图标
				 */
				function getPrepairImg() {
					var imgUrl = '/IMS/js/plugins/file/html5Upload/img/waitUpload.png';
					return  imgUrl;
				}

				/**
				 * 返回上传中的图标
				 */
				function getUploadingImg() {
					var imgUrl = '/IMS/js/plugins/file/html5Upload/img/loading.gif';
					return imgUrl;
				}

				function getUploadedImg(url) {
					if (url) {
						var lowerurl = (url + '').toLowerCase();
						// 如果url不是http://开始的网络地址，则返回一个文件的图标
						if (!(lowerurl.indexOf("http://") != -1 || lowerurl.indexOf("https://") != -1)) {
							var imgUrl = '/IMS/js/plugins/file/html5Upload/img/file.png';
							return imgUrl;
						}

						var imgReg = new RegExp('[.png$]|[.gif$]|[.jpg$]|[.jpeg$]');
						// 如果url是一个图片，则返回该url.否则返回一个文件的图标
						if (imgReg.test(lowerurl)) {
							return url;
						} else {
							var imgUrl = '/IMS/js/plugins/file/html5Upload/img/file.png';
							return imgUrl
						}
					} else {
						var imgUrl = '/IMS/js/plugins/file/html5Upload/img/waitUpload.png';
						return imgUrl;
					}
				}

				function _arrarToString(array) {
					var str;
					if (array) {
						for ( var i in array) {
							if (str) {
								str += ' | ';
							} else {
								str = ' ';
							}
							str += array[i];
						}
					}
					return str ? str : ' ';
				}

			}
		});
	/*]]>*/
	</script>
    <script>
		var licence = '/joinus/busLicense/1513066386.jpg';
		var fileServerUrl = 'https://www.fuwuqu.com/ifs/';
		var logoFileno = null;
		var certificate = null;
    </script>
	<script type="text/javascript" src="/CMS/js/pubInfo/pic.js?v=20180712190507542"></script>

</body>
</html>

